#pragma once
#include"mprpcconfig.h"
#include "mprpcchannel.h"
#include"mprpccontroller.h"
// mprpc框架的初始化类

class MprpcApplication
{
public:
    static MprpcApplication *GetInstance();
    // {
    //     MprpcApplication mprpcApplication;
    //     return &mprpcApplication;
    // }
    static void Init(int argc, char **argv);
    static MpRpcConfig& GetConfig();
private:
    MprpcApplication(){}
    MprpcApplication(const MprpcApplication &) =delete;
    MprpcApplication(const MprpcApplication &&) =delete;
    static MpRpcConfig m_config;
};
